package com.douqu.game.core.e;

/**
 * @author: miracle.
 * Description: 通知消息类型
 * Date: 2018/7/23 0023 下午 6:16
 * Huan Yu Copyright (c) 2017 All Rights Reserved.
 */
public enum E_NoticeType implements BaseEnum {
    NOTICE_TYPE_OTHER(1,"其他"),
    NOTICE_TYPE_BOSS(2,"BOSS战")
    ;

    E_NoticeType(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    int code;

    String msg;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public static E_NoticeType getEnum(int code){
        for (E_NoticeType type:E_NoticeType.values()){
            if (type.code == code){
                return type;
            }
        }
        return  E_NoticeType.NOTICE_TYPE_OTHER;
    }
}

